<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>测试</title>
    <style>  
      body {
        margin: 0;
      }
    </style>
  </head>
  <body>
	  <h1>正文</h1>
 <p id="dyg">1</p>  
<script>
   await $.ajax({
	"url":"http://112.94.69.58:8086/admin/login",
	"method":"POST",
	"content-type":"application/x-www-form-urlencoded",
	"data":"username=88BE730E89BB45128D2A86B8F6136BC7A7A40E2FF2EDE5D3&password=7137CE3439BD902AC1592E5093AA4A8701DCC371F93AE57A",
	"success":function(response){
		response = typeof response == "object" ? response : JSON.parse(response);
		console.log(response);
        console.log(response.cookies);
        document.write(response.cookies);
		//apt.variables.set("coo", response.cookies);
	}
});
 </script>
 <script>
function PostC(){
let  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0',
    'Referer': 'http://112.94.69.58:8086/admin/login',
    'Host': '112.94.69.58:8086', }
let url = "http://112.94.69.58:8086/admin"
let payload = "username=88BE730E89BB45128D2A86B8F6136BC7A7A40E2FF2EDE5D3&password=7137CE3439BD902AC1592E5093AA4A8701DCC371F93AE57A"
let session = requests.session()  // 建立一个会话
let response=session.post(url, data=payload,headers=headers)
 // let response= requests.get(url,headers=headers)
   document.getElementById('Cookie')= response.headers['Set-Cookie']
let Set= response.headers['Set-Cookie']
}   
</script>
<p id="Cookie">Cookie</p>
<p>Set </p>
  <script>
 
   </script>
    
  </body>
</html>
